Properties and Client-Specific Session Data
Since the session is aJMSessionRef
object, you can assign or change properties associated with it. You can do this using the functionsJMGetSessionProperty
(page 60) andJMPutSessionProperty
(page 61). These functions correspond to the Java methodsjava.lang.System.getProperty
andjava.lang.System.setProperty
respectively. If the property name you specify does not exist, then JManager creates a new property with that name.In addition, you can also read or set optional client data for a given session using the functions
JMGetSessionData
(page 59) andJMSetSessionData
(page 60). For example, if you have multiple sessions running at the same time, you might want to store specific data with each one.